//index.js
//获取应用实例
const app = getApp()
const baseUrl = app.picimg;
const url ="bgPic.png";
var imgurl = "";
Page({
  data: {
    motto: '明早打卡可随机瓜分金额（元）',
    score:'我的战绩',
    totle:"190,183",
   },
  //事件处理函数
  bindViewTap: function() {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
    var that = this;
    
    
    that.setData({
      imgurl: baseUrl.url+url
    });
    
  },
  getUserInfo: function(e) {
    console.log(e)
    app.globalData.userInfo = e.detail.userInfo
    this.setData({
      userInfo: e.detail.userInfo,
      hasUserInfo: true
    })
  }
})
